<!DOCTYPE html>
<html>

<head>
    <!-- 行高测试 -->
    <meta charset="utf-8">
    <title>行高测试4</title>
    <style>
        .box {
            border: 1px solid #f99;


            /* line-height: 250px; */


        }

        .block{
            width: 100px;
            height: 100px;
            display: inline-block;
        }
    </style>
</head>

<body>
    <div class="box">
            <div class="block" style="background-color: red;"></div>
            <div class="block" style="background-color:rosybrown;"></div>
    </div>

</body>

</html>